package cando1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 安慕希
 * Date: 2025-03-14
 * Time: 14:17
 */
//我们新建的类
public class WashMachine {
    //我们将赋予属于他的属性，例如洗衣机的名字和价格;我们也称之为“类的成员变量”
    public String name;
    public int price;
    public String color;
    public double weight;
    public double height;
    //我们通过方法来赋予洗衣机的功能，例如他的脱水和定时功能；
    public void washClothes(){
        System.out.println("洗衣服ing");
    }
    public void dryClothes(){
        System.out.println("脱水ing");
    }

}
